using System;
using System.Runtime.Serialization;
namespace Net35.Crm.Sdk.Messages
{
	[DataContract(Namespace = "http://schemas.microsoft.com/crm/2011/Contracts")]
	public sealed class AppointmentProposal : IExtensibleDataObject
	{
		private ExtensionDataObject _extensionDataObject;
		[DataMember]
		public DateTime? Start
		{
			get;
			set;
		}
		[DataMember]
		public DateTime? End
		{
			get;
			set;
		}
		[DataMember]
		public Guid SiteId
		{
			get;
			set;
		}
		[DataMember]
		public string SiteName
		{
			get;
			set;
		}
		[DataMember]
		public ProposalParty[] ProposalParties
		{
			get;
			set;
		}
		public ExtensionDataObject ExtensionData
		{
			get
			{
				return this._extensionDataObject;
			}
			set
			{
				this._extensionDataObject = value;
			}
		}
		public AppointmentProposal()
		{
		}
		public AppointmentProposal(DateTime? start, DateTime? end, Guid siteId, string siteName, ProposalParty[] proposalParties)
		{
			this.Start = start;
			this.End = end;
			this.SiteId = siteId;
			this.SiteName = siteName;
			this.ProposalParties = proposalParties;
		}
	}
}
